/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.dao;

import java.util.List;

import com.sasis.dao.Dao;
import com.sasis.model.FlightInfo;

public interface FlightInfoDao extends Dao {

    /**
     * Retrieves all of the flightInfos
     */
    public List getFlightInfos(FlightInfo flightInfo);

    /**
     * Gets flightInfo's information based on primary key. An
     * ObjectRetrievalFailureException Runtime Exception is thrown if 
     * nothing is found.
     * 
     * @param id the flightInfo's id
     * @return flightInfo populated flightInfo object
     */
    public FlightInfo getFlightInfo(final Integer id);
    
    public FlightInfo getFlightInfo(final FlightInfo flightInfo);

    /**
     * Saves a flightInfo's information
     * @param flightInfo the object to be saved
     */    
    public void saveFlightInfo(FlightInfo flightInfo);

    /**
     * Removes a flightInfo from the database by id
     * @param id the flightInfo's id
     */
    public void removeFlightInfo(FlightInfo flightInfo);
}

